package com.bluegalaxy.nhb.snservice.domain.constant;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 *
 * @author:
 * @date: 2018/1/22
 * @time: 11:39
 * @description: HTTP代理参数控制
 * To change this template use File | Settings | File Templates.
 */
@Component
public class HttpConstant {

    /**
     * ip代理请求开关
     */
    public static String INNER_PROXY_STATUS="ON";

    /**
     * 代理ip
     */
    public static String SN_PROXY_HOST="127.0.0.1";

    /**
     * 代理端口
     */
    public static  String SN_PROXY_PORT="80";

    //@Value("${sn.openroxy}")
    public void setSnOpenroxy(String innerProxyStatus) {
        INNER_PROXY_STATUS = innerProxyStatus;
    }

   // @Value("${sn.snProxyHost}")
    public void setSnProxyHost(String snProxyHost) {
        SN_PROXY_HOST = snProxyHost;
    }

    //@Value("${sn.snProxyPort}")
    public void setSnProxyPort(String snProxyPort) {
        SN_PROXY_PORT = snProxyPort;
    }
}
